#include "ULogInfoPane.h"
#include <QFile>
ULogInfoPane::ULogInfoPane(QWidget *parent)
{
	ui.setupUi(this);

	
}

void ULogInfoPane::setStyleSheetFile()
{
	QString sQssPath = ":/qss/styleSheet.css";
	QFile qss(sQssPath);
	qss.open(QFile::ReadOnly);
	this->setStyleSheet(qss.readAll());
}

void ULogInfoPane::initPanel(CBeltDataBase* pBeltData, CBeltCtrMgr* pBeltCtrMgr)
{
	m_pBeltData = pBeltData;
	m_pBeltCtrMgr = pBeltCtrMgr;
	m_pLogWidget = CLogOper::instance().createLogWidget(m_pBeltData->m_sBeltName);
	ui.gridLayoutLog->addWidget(m_pLogWidget);
	setStyleSheetFile();

}

ULogInfoPane::~ULogInfoPane()
{

	if (m_pLogWidget != NULL)
	{
		CLogOper::instance().destroyLogWidget(m_pLogWidget);
		m_pLogWidget = NULL;
	}
}


void ULogInfoPane::slotDataRefresh()
{

}
